func set<%= resource_name -%>Properties(d *schema.ResourceData, response, opts map[string]interface{}) error {
<% first_assign = true -%>
<% properties_to_show(object).each do |prop| -%>
<%   first_assign, c = convert_resp_parameter(prop, 'response, nil', resource_name, first_assign, 'opts', "schema", object.name) -%>
<%   unless c.empty? -%>

    <%= c %>
<%   end -%>
<% end -%>

    return nil
}

<% properties_to_show(object).each do |prop| -%>
<%= lines(build_flatten_method(resource_name, prop, object.name), 1) -%>
<% end -%>
